<template>
    <BaseContainer>
        <aplid-base-crud ref="crud" class="w-100" v-bind="baseConfig" >
            <template #detailDialog="{row,show}">
                <Archives @refresh="handleRefresh" :api="baseConfig.api" :key="show" :nowRowData="row">
                </Archives>
            </template>
        </aplid-base-crud>
    </BaseContainer>
</template>

<script setup lang="ts">
import { ref, reactive, toRefs, onMounted} from 'vue'
import { baseConfig} from './config'
import Archives from '../Archival/index.vue'


let crud = ref()
  //  处理刷新
  const handleRefresh = (query?: any) => {
      nextTick(() => {
          crud.value.refreshChange(query)
      })
  }

</script>
<style scoped lang="scss">
</style>